﻿using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;

[Route("api/main")]
[ApiController]
[Authorize] 
public class MainController : ControllerBase
{
    [HttpGet]
    public IActionResult GetTestData()
    {
        return Ok(new { Message = "You are authorized!" });
    }
}